package com.jaws.demo;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.netflix.feign.EnableFeignClients;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.transaction.annotation.EnableTransactionManagement;


/**
 * client 启动类
 *
 * @author maojian
 * @date 2018-03-12 11:24:03
 * @since v1.0.0
 */
@SpringBootApplication
@EnableDiscoveryClient
@EnableFeignClients
//@EnableHystrix
//@EnableHystrixDashboard
@EnableTransactionManagement
@EnableAsync
@EnableScheduling
public class ClientDemoApplication {

    public static void main(String[] args) throws Exception {
        SpringApplication.run(ClientDemoApplication.class, args);
    }

}
